package oo.Day04;


public class Teacher extends Person{
    Double salary;

    Teacher(String name,int age,String address,Double salary){
        super(name,age,address);
        this.salary = salary;
    }
    void saiHi(){
        System.out.println("我叫"+name+"，今年"+age+"岁了，我来自"+address+"工资为"+salary);

    }
}
